import 'package:flutter_getx_project/generated/json/base/json_field.dart';
import 'package:flutter_getx_project/generated/json/paging_entity.g.dart';

@JsonSerializable()
class PagingEntity {
  PagingEntity();

  factory PagingEntity.fromJson(Map<String, dynamic> json) =>
      $PagingEntityFromJson(json);

  Map<String, dynamic> toJson() => $PagingEntityToJson(this);

  int pageSize = 0;
  int pageIndex = 0;
  @JSONField(name: "totalCount")
  int total = 0;
  @JSONField(name: "lastPage")
  bool isLast = false;
  List? list;
}
